<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@include file="/inc/taglibs.jsp" %>
<c:if test="${user_session==null||user_session.id==0 }">
<c:redirect url="/userinfo/loginform"/>
</c:if>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/inc/js.jsp" %>
<style>
#menus ul li {text-align:left;list-style:none;width:180px}
#menus ul{float:left;}
</style>
<script>
window.history.go(2);
$(function (){
	$("#menus").load(path+"/inc/menus.jsp");
	$("#middelbody").load(path+"/userinfo/showallinfo");
});
function mbloadPage(url,a,title){
	var $middelbody=$("#middelbody");
	$middelbody.attr("url",url);
	$.ajax({url:path+url,dataType:'html',success:function(html){
		if(html=="logtimeout"){
			window.location=loginurl;
			return false;
		}
		$middelbody.empty().html(html);		
	},error:function(e){
		$middelbody.empty().html("访问异常");
	},complete:function(){hideTip(500);},beforeSend:function(){showLoading();}});
	if(a!=null&&a!=undefined)
		$("#formtitle").empty().html($(a).text());
	if(title!=null&&title!=undefined){
		$("#formtitle").empty().html(title);
	}
}
function middelbodyReload(){
	var $middelbody=$("#middelbody");
	$.ajax({url:path+$("#middelbody").attr("url"),dataType:'html',success:function(html){
		if(html=="logtimeout"){
			window.location=loginurl;
			return false;
		}
		$middelbody.empty().html(html);		
	},error:function(e){
		$middelbody.empty().html("访问异常");
	},complete:function(){hideTip(500);},beforeSend:function(){showLoading();}});
}
</script>
</head>
<body>
<div id="bodydiv">
<c:set var="ishome" value="true" scope="page"/>
	<%@include file="/inc/top.jsp"%>
	<div id="body">
	<div style="height:500px;float:left;width:200px;margin-left:0px;" class="box"> 
        <span class="rc-tp">
            <span></span>
        </span>
<%--   用户菜单 --%>
		<div class="hd" style="text-align:left;height:25px;padding-top:10px;">
            <h3>功能菜单</h3>
        </div>
        <div class="bd" id="menus" style="height:470px;">
        
        </div>
         <span class="rc-bt">
            <span></span>
        </span>
	</div>
	<div style="height:500px;float:right;width:680px;" class="box"> 
        <span class="rc-tp">
            <span></span>
        </span>
        <div class="hd" style="text-align:left;height:25px;padding-top:10px;">
            <h3 id="formtitle">欢迎，${user_session.usercode }</h3>
        </div>
        <div class="bd" id="middelbody" style="height:470px;">
			
        </div>
         <span class="rc-bt">
            <span></span>
        </span>
	</div>
	</div>
	<%@include file="/inc/bottom.jsp"%>
</div>
</body>
</html>